﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="ThietBiSo.LinQDB" %>
<%@ Import Namespace="ThietBiSo.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Website - bảng điều khiển
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%    
        SEO item = (SEO)ViewData["seos"];
    %>
    <script type="text/javascript">
        function submitForm() {
            var F = document.forms[0];

            document.forms[0].submit();
        } 
    </script>
    <% using (Html.BeginForm("index", "SEO", FormMethod.Post, new { @enctype = "multipart/form-data" }))
       { %>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend class="classFieldSet">Sửa Seo</legend>
        <table width="100%">
            <tr>
                <td class="classCreate">
                    <input type="button" value="Lưu" class="btn" onclick="submitForm();" />
                </td>
              
            </tr>
            <tr>
                <td>
                    Title
                </td>
                <td class="tableField">
                    <%:Html.TextArea("Title", item.Title, new { @Style = "width:600px;height:50px;" })%>
                </td>
            </tr>
            <tr>
                <td>
                    Keywords
                </td>
                <td class="tableField">
                    <%:Html.TextArea("Keywords", item.Keywords, new { @Style = "width:600px;height:50px;" })%>
                </td>
            </tr>
            <tr>
                <td>
                    Description
                </td>
                <td class="tableField">
                    <%:Html.TextArea("Description", item.Description, new { @Style = "width:600px;height:50px;" })%>
                </td>
            </tr>
        </table>
    </fieldset>
    <% } %>
</asp:Content>
